<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;//引入Db 操作数据库
class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        $list = Db::name('url')
                ->where('lock_status','2')  //查询不需要登陆的数据
                ->select();
        $color = ['success','info','active','warning','danger'];
        $this->view->assign('list', $list);
        $this->view->assign('color', $color);
        return $this->view->fetch();
    }

}
